<div ng-include src="'tpl/public/header.html'"></div> 
<div class="contents">
<!--<ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/simu/list">基金列表</a></li>
    <li><a href="#/simu/view?id={{jj.id}}">{{jj.jjmc}}</a></li>
    <li class="active">历史业绩</li>
  </ol>-->
  <div class="row">
    <div class="col-xs-7">
      <div class="text-muted mt-10"><span style="color:red">历史业绩</span> *单击表头，即可修改此列数据*</div>
      <div class="row cus-table mt-20" style="margin-left:0px;">
        <div class="col-xs-1 cus-row" style="width:10%"> 
          <p class="cus-col"></p>
          <p class="cus-col">区间回报</p>
          <p class="cus-col">同类平均</p>
          <p class="cus-col">沪深300</p>
          <p class="cus-col">同类排名</p>
        </div>
        <div class="col-xs-1 cus-row" ng-repeat="col in list" style="width:10%"> 
          <p class="cus-col cur-p" ng-class="{'num-pos':col.tjzq > 0,'num-neg':col.tjzq < 0}" ng-click="edit($index + 1)" title="点击修改">{{col.tjzq}}</p>
          <p class="cus-col" ng-class="{'num-pos':col.quhb > 0,'num-neg':col.quhb < 0}" ng-click="edit($index + 1)" title="点击修改">{{col.quhb}}</p>
          <p class="cus-col" ng-class="{'num-pos':col.tlpj > 0,'num-neg':col.tlpj < 0}" ng-click="edit($index + 1)" title="点击修改">{{col.tlpj}}</p>
          <p class="cus-col" ng-class="{'num-pos':col.hs300 > 0,'num-neg':col.hs300 < 0}" ng-click="edit($index + 1)" title="点击修改">{{col.hs300}}</p>
          <p class="cus-col" >{{col.tlpm}}</p>
        </div>
      </div> 
    </div>

    <form class="form-horizontal col-xs-5" role="form" name="form" ng-submit="save()" novalidate> 
      <div class="form-group">
        <label for="advertTitleInput" class="col-sm-2 control-label">基金名称</label>
        <div class="col-sm-5 form-control-text">{{jj.jjmc}}</div>
      </div> 
      <div class="form-group">
        <label for="advertTitleInput" class="col-sm-2 control-label">区间</label>
        <div class="col-sm-5 form-control-text">{{item.tjzq}}</div>
      </div>
      <div class="form-group" ng-class="{'has-error':form.quhb.$invalid}">
        <label for="advertTitleInput" class="col-sm-2 control-label">区间回报</label>
        <div class="col-sm-5">
          <input type="text" class="form-control" id="advertTitleInput" placeholder="区间回报" name="quhb" ng-model="item.quhb">
        </div>
      </div>
      <div class="form-group" ng-class="{'has-error':form.tlpj.$invalid }">
        <label for="advertLinkInput" class="col-sm-2 control-label">同类平均</label>
        <div class="col-sm-5">
          <input type="text" class="form-control" id="advertLinkInput" placeholder="同类平均" name="tlpj" ng-model="item.tlpj" >
        </div>
      </div>
      <div class="form-group" ng-class="{'has-error':form.hs300.$invalid}">
        <label for="" class="col-sm-2 control-label">沪深300</label>
        <div class="col-sm-5">
          <input type="text" class="form-control" id="" placeholder="沪深300" value="10" name="hs300" ng-model="item.hs300" >
        </div>
      </div> 
      <div class="form-group" ng-class="{'has-error':form.tlpm.$invalid }" has-auth where="btn" who="PRODUCT_PROFIT_UPDATE">
        <label for="" class="col-sm-2 control-label">同类排名</label>
        <div class="col-sm-5">
<!--<input type="text" class="form-control" id="" placeholder="同类排名" value="10" name="tlpm" ng-model="item.tlpm" > -->
          <input type="radio"    value="前1/4" name="tlpm" ng-model="item.tlpm" >前1/4
          &nbsp;&nbsp;
          <input type="radio" value="前1/2" name="tlpm" ng-model="item.tlpm" >前1/2
          <br/>
         <input type="radio"   value="后1/4" name="tlpm" ng-model="item.tlpm" >后1/4
         &nbsp;&nbsp;
         <input type="radio"  value="后1/2" name="tlpm" ng-model="item.tlpm" >后1/2
          &nbsp;&nbsp;
         <input type="radio"  value="" name="tlpm" ng-model="item.tlpm" >清空
        </div>
      </div>  
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-5">
          <button type="submit" class="btn btn-default"  has-auth where="btn" who="PRODUCT_EDIT" owner="{{item.createBy}}">提交</button>
        </div>
      </div>
    </form>
  </div>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="ads.length > 0"></div>
</div>


